package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.Contract;
import cn.wolfcode.car.business.query.ContractQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * 客户预约接口
 */
public interface IContractService {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<Contract> query(ContractQuery qo);


    /**
     * 查单个
     * @param id
     * @return
     */
    Contract get(Long id);


    /**
     * 保存
     * @param contract
     */
    void save(Contract contract);


    /**
     * 更新
     * @param contract
     */
    void update(Contract contract);

    /**
     *  批量删除
     * @param ids
     */
    void deleteBatch(String ids);

    /**
     * 查询全部
     * @return
     */
    List<Contract> list();


    String uploading(MultipartFile file) throws Exception;

    String downloadFile(Long id) throws FileNotFoundException;

    void auditON(Long id);

    void auditOff(Long id);

    void affixSealOn(Long id);

    void isNullify(Long id);
}
